﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="CustomAdminPages.aspx.cs" Inherits="Site_CustomAdminPages" %>
<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
    <uc:Menu ID="ucMenu" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header ID="ucHeader" runat="server" />
    <div class="tabPage">
        <div class="actions">
            <asp:LinkButton ID="btnInsert" CssClass="add" Text="Add new Custom Data Page" runat="server" />
        </div>
        <telerik:RadGrid ID="grid" SkinID="FormsEdit" DataSourceID="dsPages" AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" runat="server">
            <MasterTableView DataKeyNames="Id, ConcurencyId">
                <NoRecordsTemplate>
                    No custom pages have been setup.
                </NoRecordsTemplate>
                <Columns>
                    <acms:RadGridTextBoxColumn DataField="Name" HeaderText="Name" Width="250px" Required="true" />
                    <acms:RadGridTextBoxColumn DataField="ControlPath" HeaderText="ControlPath" Width="250px" Required="true" />
                    <acms:RadGridTextAreaColumn DataField="Notes" HeaderText="Notes" Display="false" Cols="50" Rows="10" />
                    <acms:RadGridSequenceColumn SequenceField="Sequence" />
                    <acms:RadGridEditColumn />
                    <acms:RadGridDeleteColumn />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:CustomAdminPageDataSource id="dsPages" runat="server" />
</asp:Content>

